<?php
namespace app\admin\controller;

use think\Config;
use think\Db;
use think\Validate;
use think\Request;
use app\admin\model\Admin;

class Base extends \think\Controller
{
    public function _initialize()
    {
        if (!session('?admin_info')) {
            return $this->redirect('Login/login');
        }

        $this->user = Admin::where('id', session('admin_info')['id'])->find();

            
    }

}
